package com.androidmvc.base.ui.activity;

import android.os.Bundle;

import com.androidmvc.base.R;
import com.androidmvc.base.module.LoginModel;
import com.androidmvc.base.network.RequestCenter;
import com.androidmvc.base.network.http.okhttp.HttpRequestCallback;
import com.androidmvc.base.utils.L;

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        RequestCenter.login(this, "11111111111", "111111", new HttpRequestCallback<LoginModel>() {
            @Override
            public void onSuccess(LoginModel loginModel) {
                L.e(loginModel.toString());



            }

            @Override
            public void onProgress(int progress, long networkSpeed, boolean done) {

            }

            @Override
            public void onFailure(int errorCode, String msg) {

            }
        });

    }

    @Override
    public void handleUIEvent(Object sender, int event, Object data) {

    }

    @Override
    protected int getContentViewId() {
        return R.layout.activity_main;
    }

    @Override
    protected void findViews() {

    }

    @Override
    protected void beforeSetViews() {

    }

    @Override
    protected void setViews() {

    }
}
